package com.project.service.impl;

import com.project.bean.CityBean;
import com.project.dao.ICityDao;
import com.project.service.ICityService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class CityServiceImpl implements ICityService {
    @Autowired
    private ICityDao dao;
    @Override
    public List<CityBean> findByCountry(int countryId) {
        return dao.findByCountry(countryId);
    }
}
